-- GENERATED SPELL FOR [Fel Soldier] --


function spell0_18944(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18944', 533, 1)
end

function spell1_18944(pUnit, Event) --@Cutdown,n/a--
pUnit:FullCastSpellOnTarget(32009,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18944', 596, 1)
end

function Sorts_18944(pUnit, Event)
local choix_sorts_18944 = math.random(0, 1)
if choix_sorts_18944 == 0 then
pUnit:RegisterEvent('spell0_18944', 1, 1)
end
if choix_sorts_18944 == 1 then
pUnit:RegisterEvent('spell1_18944', 1, 1)
end
end

function mob18944_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18944', math.random(1500, 3000), 1)
end

function mob18944_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18944_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18944_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18944, 1, 'mob18944_Action')
RegisterUnitEvent(18944, 2, 'mob18944_Leave')
RegisterUnitEvent(18944, 3, 'mob18944_Kill')
RegisterUnitEvent(18944, 4, 'mob18944_Die')
